﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using DataServices.Model;
using System.Configuration;
using System.Data.Entity.Infrastructure;

namespace DataServices.Services
{
    public class DBServices : DbContext
    {
        public DbSet<Category> Categories { get; set; }

        public DBServices()
            : base(ConfigurationManager.ConnectionStrings["DBServices"].ConnectionString)
        {
            Database.DefaultConnectionFactory = new SqlCeConnectionFactory(ConfigurationManager.ConnectionStrings["DBServices"].ProviderName);
        }
    }
}
